/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mediador;

/**
 *
 * @author Elise
 */
public class ConcreteMediator implements Mediator{
    private ConcreteCollegue1 c1;
    private ConcreteCollegue2 c2;
    private ConcreteCollegue3 c3;

    public void setC1(ConcreteCollegue1 c1){
        this.c1 = c1;
    }
    public void setC2(ConcreteCollegue2 c2){
        this.c2 = c2;
    }
    public void setC3(ConcreteCollegue3 c3){
        this.c3 = c3;
    }

    public void fazerAlgoLegal(){
        c2.alegrarse();
        c3.alegrarse();
    }

    public void fazerAlgoChato(){
        c1.aborrecerse();
        c3.aborrecerse();
    }

    public void fazerAlgoDificil(){
        c1.maravilharse();
        c2.maravilharse();
    }

}
